home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-02-05 | 1.5 KB | 50 lines |
- # Makefile for mp
- # Greg Lee, 1/30/93
-
- DESTDIR = /usr/src/Sound/bin
- LINK = cc
-
- # The value of XSELECT determines which channels get sent
- # to the external midi port. If b0 is 1, e.g., channel one
- # gets sent there. I have it as -DXSELECT=0x0ff to send the
- # first eight channels out and play only the high eight channels
- # on the sound card. If you don't have an external port, you could
- # put -DXSELECT=0. Similarly, -DPSELECT determines which channels
- # should be considered percussion channels; -DPSELECT marks
- # channels 10 and 16 for percussion.
- # -DK1 is for hooking up and external Kawai K1 -- the relevant code
- # is in file phase2.c
- # If the synth hooked to the external port has a small number of polyphonic
- # voices, you can try adding -DXPOLYPHANY=8 or some other small number,
- # in which case mp will disable external output to one or more channels
- # if it thinks the limit you set will be exceeded (but I haven't been
- # very succesful with this).
-
- CFLAGS = -O2 -DUNIX -DXSELECT=0x0000 -DPSELECT=0x8200
-
- PROGS = mp setsb setdrums
- OBJ = midifile.o mp.o phase2.o userio.o cmdline.o
-
- all: $(PROGS)
-
- mp: $(OBJ)
- $(LINK) $(OBJ) -o mp
-
- setsb: setsb.o
- $(LINK) setsb.o -o setsb
-
- setdrums: setsb
- ln -s setsb setdrums
-
- install: all
- install -s mp setsb $(DESTDIR)
- (cd $(DESTDIR); ln -s setsb setdrums)
-
- clean:
- rm -f *.o $(PROGS)
-
- phase2.o: cext.h adagio.h userio.h cmdline.h pitch.h midicode.h midi.h drum.h
- userio.o: cext.h userio.h
- cmdline.o: cext.h cmdline.h
- mp.o: cext.h adagio.h userio.h cmdline.h midifile.h midi.h midicode.h vname.h
-